//
//  LBShoppingTrollyViewController.m
//  LvoeBeen_Imitation
//
//  Created by Mac on 17/2/18.
//  Copyright © 2017年 itcast. All rights reserved.
//

#import "LBShoppingTrollyViewController.h"
#import "LBEmptyShoppingView.h"
#import "LBCarViewController.h"

#import <Masonry.h>

@interface LBShoppingTrollyViewController ()<LBEmptyShoppingViewDelegate>

@end

@implementation LBShoppingTrollyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupUI];
    
}
-(void)setupUI{
    //空的购物车视图
    LBEmptyShoppingView *empView = [[LBEmptyShoppingView alloc]init];
    [self.view addSubview:empView];
    //布局
    [empView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self.view);
    }];
    empView.delegate = self;
    
}

#pragma mark
#pragma mark - empView的代理方法
-(void)goShopping{
    //    [self.navigationController popViewControllerAnimated:YES];
    LBCarViewController *vc = [[LBCarViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}





@end
